export const read = k => localStorage.getItem(k);
export const write = R.curry( (k, v) => localStorage.setItem(k, v) );
export const writeAsStr = R.curry(
  (k, v) => R.compose( write(k), R.curryN(1, JSON.stringify) )(v)
);
export const readAsObj = R.compose( R.curryN(1, JSON.parse), read );
